import {applyMiddleware, createStore} from 'redux'
import thunk from 'redux-thunk'
import reducer from '../reducers/index'
import {composeWithDevTools} from 'redux-devtools-extension'

const initialState = {}
const configureStore = () => {
    const enhancer = applyMiddleware(thunk)
    return createStore(reducer, initialState, composeWithDevTools(enhancer))
}

const store = configureStore()

export default store
